opacity_parse,
opacity_query,
_gtk_css_number_value_new (1, GTK_CSS_NUMBER));
+ gtk_css_style_property_register ("filter",
+ GTK_CSS_PROPERTY_FILTER,
+ G_TYPE_NONE,
+ GTK_STYLE_PROPERTY_ANIMATED,
+ GTK_CSS_AFFECTS_REDRAW,
+ filter_value_parse,
+ NULL,
+ gtk_css_filter_value_new_none ());
/* Private property holding the binding sets */
gtk_css_style_property_register ("-gtk-key-bindings",
#include "gtkaccelmapprivate.h"
#include "gtkaccelgroupprivate.h"
#include "gtkclipboard.h"
-#include "gtkcssstylepropertyprivate.h"
+#include "gtkcssfiltervalueprivate.h"
#include "gtkcssnumbervalueprivate.h"
#include "gtkcssshadowsvalueprivate.h"
+#include "gtkcssstylepropertyprivate.h"
#include "gtkintl.h"
#include "gtkmarshalers.h"
#include "gtkselectionprivate.h"
{
GtkWidgetClass *klass = GTK_WIDGET_GET_CLASS (widget);
graphene_rect_t bounds;
+ GtkCssValue *filter_value;
GtkAllocation clip;
GtkAllocation alloc;
RenderMode mode;
if (GTK_DEBUG_CHECK (SNAPSHOT))
gtk_snapshot_push (snapshot, TRUE, "%s<%p>", gtk_widget_get_name (widget), widget);
+ filter_value = _gtk_style_context_peek_property (gtk_widget_get_style_context (widget), GTK_CSS_PROPERTY_FILTER);
+ gtk_css_filter_value_push_snapshot (filter_value, snapshot);
+
if (mode == RENDER_DRAW)
{
cairo_t *cr;
gtk_snapshot_pop_and_append (snapshot);
}
+ gtk_css_filter_value_pop_snapshot (filter_value, snapshot);
+
if (GTK_DEBUG_CHECK (SNAPSHOT))
gtk_snapshot_pop_and_append (snapshot);
}